
local RoleData={
    player_info = {
        uid = 0,                 -- 账号ID
        rid = 0,                 -- 角色ID
        name = "",               -- 玩家名字
        level = 1,               -- 玩家等级
        stageid = 1002,
        pos = {x=16,y=21},
        icon_id = 0,             -- 头像icon
        exp = 0,                 -- 玩家经验
        gold = 0,                -- 金币
        diamond = 0,             -- 钻石
        sex = 0,
        guide  = 0,              -- 新手引导的值
    },                           -- 玩家信息
    vip_info={
        vip_level = 0,           -- vip等级
    },
    lastDayLogins = 0,           -- 昨日登录人数
    curtime = 0,                 -- 当前时间
    startupTime = 0,             -- 服务器启动时间
    version = 0,
}

function RoleData:reset()
	self.has_login=false
	self.platform=0
	self.user_id=""
	self.server_id=0
    self.server_name=""
    self.is_server_full=false
	self.server_time=0
	self.player_info.player_id = 0                   -- 玩家ID
    self.player_info.name = ""                       -- 玩家名字
    self.player_info.level = 1                       -- 玩家等级
    self.player_info.icon_id = 0                     -- 头像icon
    self.player_info.exp = 0                         -- 玩家经验
    self.player_info.gold = 0                        -- 金币
    self.player_info.diamond = 0                     -- 钻石
    self.player_info.charge = 0                     -- 累计充值数量
    self.player_info.energy = 0                     -- 活力
    self.player_info.maze_point = 0                --  耐力
    self.player_info.repute = 0                     -- 荣誉值
    self.player_info.guide  = 0                     -- 新手引导的值
    self.vip_info.vip_level = 0                     -- vip等级
    self.vip_info.buy_energy_times = 0              -- 购买体力的次数
    self.vip_info.buy_arena_times = 0               -- 购买竞技点的次数
    self.vip_info.buy_gold_times = 0                -- 点金手的次数
    self.vip_info.next_buy_gold = 0                 -- 下次点金获得的金币数
    self.vip_info.buy_maze_point_times = 0          --  购买耐力的次数
    self.vip_info.is_get_daily_reward=false
    self.vip_info.vip_rewarded=0
    self.last_level=0
    self.data_md5=""
    self.fight_md5=""
    self.sdata_md5=""
    self.sfight_md5=""
    self.login_info={}
    self.pass_code=0
    self.ext=""
    self.his_pvp_rank=0
    self.soft_step=0
    
    self.client_guide = {}
    self.role_gold_tip = true
end

return RoleData